<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1 align = "center">欢迎来到***页面</h1>
	
	<div border = "1px" id= "p1" width = "1000px">
		<div id = "p3">
		<h2 align = "center">欢迎使用查询功能(注：可以查询指定日期之前的文章&点击量>?的文章)</h2>
		<form action="Fenye" method = "get" id = "frm">
			作者	<input type= "text" name = "user" > 
			书名 <input type= "text" name = "aname"  > 
			文章内容 <input type= "text" name = "content" > 
			点击量 <input type= "text" name = "fans" > 
			发表日期 <input type="date" name="date" /> 
	 		<input type = "submit" value = "查询"><br>
	 		<input type= "hidden" id = "hidPageNum" name="pageNum" value = "${pageNum }">
	 	</div>
	<br><br><br>
	<table border = "1px" align = "center" width = "1000px">
		<tr><td>作者</td><td>书名</td><td>文章内容</td><td>点击量</td><td>发表日期</td></tr>
		<c:forEach items = "${page.data}" var = "article" >
			<tr>
				<td>${article.user}</td>
				<td>${article.aname}</td>
				<td>${article.content}</td>
				<td>${article.fans}</td>
				<td>${article.date}</td>
				<td>
					<!-- <a href = "all?pid=${products.pid}&option=edit" onclick=" return confirm('确认要进行数据修改吗?')" >编辑</a> -->
					<a href = "#" onclick=" return confirm('点我进去看看')" >点我进去看看</a>
				</td>
			</tr>
		</c:forEach>
	</table>
	
	<h2>总记录数${page.total}</h2>
	<!-- 遍历page.bar -->
	<c:forEach items = "${page.bar }" var = "i">
		<!-- <a href=""?pageNum=${page.bar }>第i页</a> -->
		<a href="Fenye?currentPage=${i }">第${i }页</a>
	</c:forEach>
	
</body>
</html>